//
//  USTarotCard.m
//  us
//
//  Created by karry on 2025/5/13.
//

#import "USTarotCardView.h"
#import "USTarotCard.h"

@implementation USTarotCardView


- (UIImageView *)imageView{
    if (!_imageView) {
        
        _imageView = [[UIImageView alloc]initWithImage:[USTarotCard defaultCardCover]];
    }
    return _imageView;
}

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupView];
    }
    return self;
}

- (void)setupView{
    
    [self addSubview:self.imageView];
    [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    self.imageView.layer.cornerRadius = 6;
    self.imageView.layer.masksToBounds = YES;
    
    [self jk_shadowWithColor:UIColor.whiteColor offset:CGSizeMake(0, 1) opacity:0.3 radius:1];
    
    
}

@end
